package com.tmc.bean.intcar;

/**
 * @author zhang
 * @date 2017年12月20日 下午1:45:32 
 */
public class EthSubmitOrderResp {

	private boolean success;
	private String message;
	private String vendorOrderID;
	
	
	public EthSubmitOrderResp(boolean success, String message, String vendorOrderID) {
		super();
		this.success = success;
		this.message = message;
		this.vendorOrderID = vendorOrderID;
	}
	
	public EthSubmitOrderResp() {
		super();
	}
	
	
	public static EthSubmitOrderResp makeFail(String message){
		return new EthSubmitOrderResp(false, message, null);
	}
	
	public static EthSubmitOrderResp makeSuccess(String message, String venderOrderID){
		return new EthSubmitOrderResp(true, message, venderOrderID);
	}
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

	public String getVendorOrderID() {
		return vendorOrderID;
	}

	public void setVendorOrderID(String vendorOrderID) {
		this.vendorOrderID = vendorOrderID;
	}
	
	
}
